Skip to content

Instantly share code, notes, and snippets.

@rickdaalhuizen90
rickdaalhuizen90 / .bashrc
Created February 12, 2017 17:20
Parrot Os bash theme for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@OrionReed
OrionReed / dom3d.js
Last active May 16, 2024 05:19
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@carlwgeorge
carlwgeorge / yum-clean-all-demystified.md
Last active May 16, 2024 05:16
yum clean all demystified

TLDR:

  • yum clean all == clean most
  • rm -rf /car/cache/yum/* == really clean everything

From the man page:

Note that these commands only operate on files in currently enabled
repositories. If you use substitution variables (such as $releasever) in your cachedir configuration, the operation is further restricted to the current
values of those variables.

@simov
simov / README.md
Last active May 16, 2024 05:16
Run `node` scripts using `nvm` and `crontab` without hardcoding the node version

Run node scripts using nvm and crontab without hardcoding the node version

cronjob.env.sh

#!/bin/bash

# NVM needs the ability to modify your current shell session's env vars,
# which is why it's a sourced function
@braian87b
braian87b / dumb-ap-wired-link.sh
Last active May 16, 2024 05:08
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE
@ctlllll
ctlllll / longest_chinese_tokens_gpt4o.py
Created May 13, 2024 19:53
Longest Chinese tokens in gpt4o
import tiktoken
import langdetect
T = tiktoken.get_encoding("o200k_base")
length_dict = {}
for i in range(T.n_vocab):
try:
length_dict[i] = len(T.decode([i]))
except:
@dpaluy
dpaluy / README.md
Last active May 16, 2024 05:03
Download view only protected PDF from Google Drive

Step by step guide to downloading protected PDF from Google Drive

  1. Open the document in Google Docs
  2. Scroll to the bottom of the document, so all the pages are present
  3. Open Developer Tools on separate window and choose the Console tab
  4. Paste the code
  5. Have fun!
@dahlia
dahlia / job.md
Last active May 16, 2024 05:16
일자리를 찾습니다

일자리를 찾습니다

안녕하세요, 서울에 거주하는 18년차 소프트웨어 엔지니어 [홍민희]입니다.

[집안 사정]으로 일을 쉰 지 1년이 되었고, 이제 슬슬 재취업을 하려고 합니다. 1년을 쉰 만큼 이번 취업은 소프트웨어 엔지니어로서 재활을 큰 목표로 두고 있습니다. 자세한 제 소개는 [이력서]를 참고해 주세요.

제가 선호하는 업무 환경은 다음과 같습니다.

  • 프로그래밍 언어 및 플랫폼: 오래되고 검증된 Java 같은 플랫폼도 물론 좋습니다만, Rust나 Haskell처럼 비교적 최신의 PLT 연구가 반영되어 있는 언어도 즐겨 사용합니다. 비교적 능숙한 언어로는 Haskell, TypeScript, Python, C# 정도가 있고, 다른 언어라도 필요하다면 배워서 써야겠지요.
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active May 16, 2024 05:02
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@ihoneymon
ihoneymon / how-to-write-by-markdown.md
Last active May 16, 2024 05:02
마크다운(Markdown) 사용법

[공통] 마크다운 markdown 작성법

영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^

아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.

1. 마크다운에 관하여